package com.example.gybicycle.entity;

import com.example.gybicycle.common.entity.Entity;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Date;
import java.util.List;

import lombok.Data;


@Data
@Schema(name ="锁")
public class Lock   extends Entity {
    @Schema(description = "锁编码")
    private String id;
    @Schema(description = "主锁编码")
    private String mainId;
    @Schema(description = "子锁编码")
    private String cid;
    @Schema(description = "锁名称")
    private String name;
    @Schema(description = "等级 1 主锁 2 子锁")
    private Integer grade;
    @Schema(description = "状态 1 待使用 2 已使用")
    private Integer state;
    @Schema(description = "所在停车点")
    private String bikePointId;
    @Schema(description = "所在停车点名称")
    private  String bikePointName;
    @Schema(description = "二维码")
    private String qrcode;
    private List<Lock> children;

}